FROM debian

MAINTAINER ZYi Guo
MAINTAINER mlzxgzy@gmail.com

# 标记端口
EXPOSE 3632
# 复制Flag至根目录
COPY flag* /
# 安装Distccd
RUN sed -i "s/http:\/\/deb.debian.org/http:\/\/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list \
 && apt update \
 && apt install -y wget \
 && wget http://launchpadlibrarian.net/1423850/distcc_2.18.3-3_amd64.deb \
 && apt install --fix-broken -y ./distcc_2.18.3-3_amd64.deb \
 && apt clean all \
 && rm -rf distcc_2.18.3-3_amd64.deb
ENTRYPOINT /usr/bin/distccd --daemon --user daemon --allow 0.0.0.0/0 && /bin/bash